package cn.zh.planmanager.infrastructure.repository;

import cn.zh.planmanager.domain.plan.repository.PlanSetRepository;
import cn.zh.planmanager.infrastructure.entity.PlanSetEntity;
import cn.zh.planmanager.infrastructure.mapper.PlanSetMapper;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Repository;

/**
 * @author zh
 */
@Repository
@RequiredArgsConstructor
public class PlanSetRepositoryImpl implements PlanSetRepository {

    private final PlanSetMapper planSetMapper;

    @Override
    public PlanSetEntity findById(Integer id) {
        return planSetMapper.selectById(id);
    }
}
